package com.example.avmanagerweb.controller;


import com.example.avmanagerweb.entity.Devicinpt;
import com.example.avmanagerweb.entity.vo.SysDevicVo;
import com.example.avmanagerweb.result.RLIST;
import com.example.avmanagerweb.service.DevicinptService;
import com.example.avmanagerweb.service.SysDevicService;
import com.example.avmanagerweb.service.SysUserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xg
 * @since 2023-08-17
 */
@RestController
@RequestMapping("/devicinpt")
public class DevicinptController {
//    @Autowired
//    private DevicinptService devicinptService;
//
//    @DeleteMapping("/delDevicList")
//    public RLIST delDevicList(@RequestBody List<Integer> listByIds){
//        System.out.println(listByIds.toArray());
//        if(listByIds == null || listByIds.size() == 0){
//            return RLIST.error();
//        }
//        List<Devicinpt> devicinpts = devicinptService.listByIds(listByIds);
//        if(devicinpts == null || devicinpts.size() == 0){
//            return RLIST.error();
//        }
//        boolean b = devicinptService.delDevList(devicinpts);
//        if(b){
//            return RLIST.ok();
//        } else {
//            return RLIST.error();
//        }
//
//
//    }



}

